﻿using System.ComponentModel.DataAnnotations;

namespace FYSJcrm.Core.Web.Areas.PermManage.Models.AdminUserModels
{
    public class AdminUserChangePasswordModel
    {
        /// <summary>
        /// 管理员Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 旧密码
        /// </summary>
        [Required]
        [MinLength(6)]
        public string OldPassword { get; set; }

        /// <summary>
        /// 新密码
        /// </summary>
        [Required]
        [MinLength(6)]
        public string NewPassword { get; set; }

        /// <summary>
        /// 确认密码
        /// </summary>
        [Required]
        [Compare(nameof(NewPassword))]
        public string NewPassword2 { get; set; }
    }
}